import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

export default new Vuex.Store({
	state: {
		province: '',
		city: '',
		area: '',
		areaData: [],
		islogin: ''
	},
	mutations: {
		changeProvi (state, key) {
			state.province = key
		},
		changeCity (state, key) {
			state.city = key
		},
		changeAreadata (state, key) {
			state.areaData = key
		},
		changeArea (state, key) {
			state.area = key
		},
		islogin (state, key) {
			state.islogin = key
		}
	},
	getters: {

	},
	actions: {
		getData: function ({ commit }) {
			commit('changeCity', 'key')
		}
	}
})
